<template>
  <page-layout ref="page">
  </page-layout>
</template>

<script>
export default {
  mounted () {
    let target = 'DashboardBusiness'
    // this.$refs.page.setIniting()
    if (this.$store.state.user.roles.includes('ROLE_ADMIN')) {
      target = 'DashboardSystemControl'
    }
    setTimeout(() => {
      this.$router.replace({
        name: target
      })
    }, 0)
  },
  methods: {
    goto () {
      this.$router.push({
        name: 'DemoAbout'
      })
    }
  }
}
</script>
